<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
Vue Data数据对象

1.Vue中用到的数据定义在data中

2.data中可以写复杂类型的数据

3.渲染复杂类型数据时,遵守js的语法即可
-->

<div id="app" >
    {{ message }}
   <h2>{{school.name}} {{school.age}}</h2>
    <ul>
        <li>{{campus[0]}}</li>
        <li>{{campus[1]}}</li>
    </ul>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    var app = new Vue({
        el:"#app",
        data:{
            message:"你好,VUE!",
            school:{
                name:"程序猿",
                age:"18"
            },
            campus:["北京","上海","深圳"]
        }
    });
</script>
</html>